
#ifndef CONSTANTBUFFER_H
#define CONSTANTBUFFER_H

#include "DeviceManager.h"

class ConstantBuffer
{
public:
	static ConstantBuffer* Create(DeviceManager* pManager, int size);
	void Release();
	void Write(LPVOID pSource, int size);
	ID3D11Buffer* GetBufferPointer();
private:
	ConstantBuffer();
	ID3D11Buffer* mpBuffer;
	DeviceManager* mpDeviceManager;
};

#endif
